define(function(){
	function page2(){
		$.ajax({
			type:"get",
			url:"http://127.0.0.1/XiaoZhuangWangXiangMu/json/page2.json",
			async:true,
			success:function(json){
				var title="";
				for(var attr in json){
					if(attr=="header"){
						for(var i = 0;i < json[attr].length;i ++){
							title+=`
							 <li>
									<a class="detail_r"><img  class="detail_q" src="../img/${json[attr][i].src}"/></a>
									<span class="detail_f">${json[attr][i].span}</span>
									<p class="detail_e">${json[attr][i].p}</p>
								</li>
							`
							$(".detail_t").html(title);
						}
					}
				}
			}
		})
	}
	return {
		page2 : page2
	}
})
